package com.dxl.consumer;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Description: TODO
 *
 * @author: Yingyu Wei
 * <p>File Created at 2021/5/1</p>
 */
@Component
public class Consumer1 {

    @RabbitListener(queuesToDeclare = @Queue(name = "work-queue",durable = "true"))
    public void handlerMessage(String msg) {
        System.out.println("消费者1：" + msg);
    }
}
